const obj = readonly({ foo: 1 })

obj.foo = 2